package com.yjc.drygoods.member.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author yjc
 * @create 2022-09-29 15:20
 */
@FeignClient("drygoods-order")
public interface OrderFeignService {

    @PostMapping("/order/order/listWithOrderItems")
    R listWithOrderItems(@RequestBody Map<String, Object> params);

    @PostMapping("/order/order/get/everyone/consumeTotal")
    R getEveryoneConsumeTotal(@RequestBody List<Long> memberIds);
}
